//
//  UILabel+QSLabel.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/17.
//  Copyright © 2020 DingC. All rights reserved.
//



#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (QSLabel)
/**
 *  设置label
 *
 *  @param labelName label.text
 *  @param font font
 *  @param color color
 *  @param textAlignment textAlignment
 */
+ (UILabel *)labelWithName:(NSString *)labelName font:(UIFont *)font textColor:(UIColor *)color textAlignment:(NSTextAlignment)textAlignment;

/**
 *  改变行间距
 */
- (void)changeLineSpaceWithSpace:(CGFloat)space textAlignment:(NSTextAlignment)textAlignment;


/**
 设置label部分字体变色
*  @param string 总文字
*  @param range 变色范围
*  @param color 颜色
*/

+ (NSMutableAttributedString *)setLabelTextColorWithString:(NSString *)string
                                                     Range:(NSRange )range
                                                  andColor:(UIColor *)color;
@end

NS_ASSUME_NONNULL_END
